<template>
	<view class="setting">
		<view class="loginOut" @click="loginOut">
			<text>退出登录</text>
		</view>
	</view>
</template>

<script setup>
	const loginOut = () => {
		uni.clearStorageSync('Token')
		uni.navigateTo({
			url: '/pages/login/login'
		})
	}
</script>

<style lang="scss">
	.setting {
		height: 100vh;
		display: flex;
		justify-content: center;

		.loginOut {
			height: 80rpx;
			background: #fff;
			border-radius: 30rpx;
			width: 95%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 30rpx 0;
			font-size: 34rpx;
			font-weight: bold;
		}
	}
</style>